<script setup>
import { reactive, ref, defineEmits } from 'vue'
const emits = defineEmits(['radioClick'])

const radio1 = ref('')
const radiochange = (radio1) => {
	emits('radioClick', radio1)
}
</script>

<template>
	<span style="margin-right: 5px">选择消息类型</span>
	<el-radio-group v-model="radio1" class="ml-4" @change="radiochange(radio1)">
		<el-radio :label="1" size="large">图片</el-radio>
		<el-radio :label="2" size="large">链接</el-radio>
		<el-radio :label="3" size="large">小程序</el-radio>
	</el-radio-group>
</template>
<style scoped></style>
